package org.rency.crawler.plugins.url;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 描述: ${TODO}<br>
 * 最近修改时间:2017/12/15 11:41<br>
 *
 * @author CaiyuRen
 * @version V1.0
 * @since 2017/12/15 11:41
 */
public class NormalizeUrl {

  /**
   * 原始URI
   */
  private String orgiUri;

  private String scheme;

  private String host;

  private String path;

  private String normalizeUri;

  private String fullUri;

  public String getOrgiUri() {
    return orgiUri;
  }

  public void setOrgiUri(String orgiUri) {
    this.orgiUri = orgiUri;
  }

  public String getScheme() {
    return scheme;
  }

  public void setScheme(String scheme) {
    this.scheme = scheme;
  }

  public String getHost() {
    return scheme+"://"+host;
  }

  public void setHost(String host) {
    this.host = host;
  }

  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }

  public String getNormalizeUri() {
    return normalizeUri;
  }

  public void setNormalizeUri(String normalizeUri) {
    this.normalizeUri = normalizeUri;
  }

  public String getFullUri() {
    return fullUri;
  }

  public void setFullUri(String fullUri) {
    this.fullUri = fullUri;
  }

  @Override
  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
  }
}
